package com.ruoyi.system.service.impl;

import com.baomidou.mybatisplus.core.toolkit.IdWorker;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import java.util.List;
import javax.annotation.Resource;

import com.ruoyi.system.service.IDrawGraphObjService;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.DrawGraphObjMapper;
import com.ruoyi.system.domain.DrawGraphObj;

/**
 * 【请填写功能名称】Service业务层处理
 *
 * @author chenming
 * @date 2025-03-31
 */
@Service
public class DrawGraphObjServiceImpl extends ServiceImpl<DrawGraphObjMapper, DrawGraphObj> implements IDrawGraphObjService
{
    @Resource
    private DrawGraphObjMapper drawGraphObjMapper;

    /**
     * 查询【请填写功能名称】
     *
     * @param graphId 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public DrawGraphObj selectDrawGraphObjByGraphId(String graphId)
    {
        return drawGraphObjMapper.selectDrawGraphObjByGraphId(graphId);
    }

    /**
     * 查询【请填写功能名称】列表
     *
     * @param drawGraphObj 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<DrawGraphObj> selectDrawGraphObjList(DrawGraphObj drawGraphObj)
    {
        return drawGraphObjMapper.selectDrawGraphObjList(drawGraphObj);
    }

    /**
     * 新增【请填写功能名称】
     *
     * @param drawGraphObj 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertDrawGraphObj(DrawGraphObj drawGraphObj)
    {
            drawGraphObj.setGraphId(IdWorker.getIdStr());
            return drawGraphObjMapper.insertDrawGraphObj(drawGraphObj);
    }

    /**
     * 修改【请填写功能名称】
     *
     * @param drawGraphObj 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateDrawGraphObj(DrawGraphObj drawGraphObj)
    {
        return drawGraphObjMapper.updateDrawGraphObj(drawGraphObj);
    }

    /**
     * 批量删除【请填写功能名称】
     *
     * @param graphIds 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteDrawGraphObjByGraphIds(String[] graphIds)
    {
        return drawGraphObjMapper.deleteDrawGraphObjByGraphIds(graphIds);
    }

    /**
     * 删除【请填写功能名称】信息
     *
     * @param graphId 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteDrawGraphObjByGraphId(String graphId)
    {
        return drawGraphObjMapper.deleteDrawGraphObjByGraphId(graphId);
    }
}
